Fixing issue with Firefox compatibility

Modified the onclick event handler to comply with the way events
are handled in Firefox.
This solves issue #3.