Use [Otto](https://github.com/robertkrimen/otto) to implement the Javascript functionality that InteliJ has