switch in javascript to production urls