Fix loading r file by adjusting the baseurl with removing cloud.js

Here's a solution to remove the first 404 error when calling the first time the /r file.
I don't know if the assumption of always having cloud.js file work (could be adjusted later)