Using strict mode.
Removing an unused object.
JSHint/JSLint-ing.
Using is-extended.