Cleanup unused variables

Also make JSHint look for and enforce unused variables.