Make paths.js work in the browser