Add support for mobile devices on the JS scripts