added js to switch on controls if ios