Fixed scoping issue that got triggered by using minify (uglifyjs2).
Implemented source maps.