Fix javascript path issue and make abtest:precompile a dependency of assets:precompile