Updating JS for navigator