Fixing JS error and re-enabling touch