Add support for JavaScript templates in the GUI.

![screen shot 2014-08-03 at 12 14 59 pm](https://cloud.githubusercontent.com/assets/664857/3791539/99274fba-1b43-11e4-927a-52fdaced8cbf.png)