Convert msg.coffee to msg.js

THERE ARE TESTS
AND HAML
AND STUFF