Put JS code in separate file