Never mind, finally I found the problem. There was an extra jscript file in the includes>modules>order_total that was causing the error.

Sorry for the post.