Add support for pre-compiling javascript templates