Fixed the structure so that the Javascript code is managed by the Jerrasic backend rather than a random assortments of functions