Added textInputOverlayExample.js

Displays a text overlay and captures keystrokes which appear on the
overlay. Demonstrates keystroke events, mouse click events, clickable
text overlay and image overlay buttons
code tidy up

Fixed indentation, fixed text overflow.
Merge pull request #3693 from Adrianl3d/20016

CR for Job #20016 - Input box overlay in Javascript