Prevent errors with touchEvent plugin when $.ui is not used