Create JS module and set up ace editor

Resolves #06