use btoa as base64 encoder, inspired by @ashtuchkin
fixed lineno
safer browser check
better naming by @michaelficarra
Merge pull request #2847 from hden/browser-source-map

Browser source map