(#25) Move JS functions into own file

This commit moves the js functions responsible for configuring the ACE
editor into their own file.