fix the sourcemap stuff so that it works in the browser too