@martijn: maybe source maps is the way for debugging http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/