js mobile fixes