fix issues with js precompilation