Javascript precompile