Added JavaScript example

I migrated my JavaScript functions to the bottom <script> block, and
called it using a buttononClick() action on line 46. On line 49 I did
the same thing, this time passing an argument.