Added an entry point to pre-generate JavaScript on a measure