Split javascript into separate .js files