adjust precompile for new js usage