Fix JS tests prebuild for clinker

JS tests that should have failed pass on clinker, by looking into clinker output it seems to be due to the `grunt test` task, that was not rebuilding JS files properly.