Running Wt.js through jshint

This solves most of the issues raised by jshint:
- == instead of ===
- != instead of !==
- extra semicolons
- inner functions not at the beginning of outer functions
- duplicate variables
- constructors without ()

Remaining issues relate to eval.