added js to switch on controls if ios
Merge branch 'master' into gh-pages