temporary fix for the CORS javascript problems