Fixing main.js for subdir deploys