Fix permissions on JS files