Add source map during frontend.js compilation

closes #993