added js to switch on controls if ios -- previous commit didn't work
Merge branch 'master' into gh-pages