compile coffeescript with sourcemaps

Resolves #774. Not sure how to incorporate into the rest of the build steps though.