JS additions for precompiling