Move JavaScript into main.js.
Remove bogus messageTypes.js reference.