Added source map output functionality for JS.