Bug fix; Coffeescript classes wouldn't load on server restart

Defining the coffeescript classes like "class @MapBox" wasn't working after a server
restart for some reason, but switching to "class window.MapBox" to attach it to the window
explicitly did work.