Added an IIFE to try and fix mobile