added semicolons and === comparators for null as per jshint