To enable the debug console under Safari:
- From the homescreen tap on Settings> Safari
- In the right pane, scroll and tap on "Advanced.
- In the window that opens up, move the button next to "Debug Console" to the right to turn it ON.
- Press the Home button to exit Settings