Introduction
In the Settings app, tap Safari > Advanced. Enable JavaScript.
Instructions
1) Open the Settings app.
2) Scroll down and tap Safari.
3) Scroll to the bottom and tap Advanced.
4) Slide the "JavaScript" switch to the right to the "on" position.
Outcome
JavaScript has been enabled for Safari on your mobile Apple device.