Split the javascript out in separate files