Mobile fixes on JS