Fix some problems noted by JSHint
=== instead of ==
Use dot notation instead of property indexing