fixed js hosting issues