Added a tablet fix for the JS