Updated usage of private method declaration
Removal of whitespace and missing semi-colons
Fixed missing strict equality
Filtered for in
Added use strict
Added missing semi-colon and braces
Removed unused variables