move charset to top of head
use on handlers instead of click
put the JS in an immediately invoked function expression to keep variables and functions out of global scope
retab JS
fix a few jshint errors: ===, blocks without brackets, function not at top of scope
Merge pull request #62 from calvinf/master

Assorted minor improvements.