Added "use strict" and other JSLint bits

No changes needed to make "use strict" work, so that's cool.
Using .hasOwnProperty instead of in to be more explicit about the object
involved.
Converted some double equals to triple equals.