Added support for source maps, courtesy of waxolunist, fixes #381