Fixes #2766 -- incompatible line number API
refactoring to a baseFileName that can work in the browser, for later
Fixes #2765 -- incorrect line number in mappings
CoffeeScript 1.6.1