Split javascript into separate files