fixed borked javascript code in unminified javascript

The default simple.html example doesn't work with the unminified javascript--there were some missing syntactical elements.

I wasn't sure how you minified the javascript, so I left that untouched.