Fix more errors with javascript precompile