Switch JS to use mobile class for hiding