Fix for js file url with no protocol