Added try and catch to onFocus for debugging.
Merge pull request #8 from thisMagpie/javascript

Added try and catch to onFocus for debugging.