Cleaning up js lint errors.

I've removed unnecessary semicolons. Added necessary semicolons. Pulled function creation out of loops. I've updated the jshint ignore file to properly scan mitro for javascript files. Removed the temporary suppression of some lint warnings in the jshint file after fixing the errors corresponding to those rules.
Instead of using an intermediate variable, could you get rid of `appliedThisPointer`, and call apply with `null` instead of `undefined`, [as is convention](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply#Example.3A_Using_apply_and_built-in_functions)?