minor refactor of function to add the mobile-webkit class