Code cleaning.

Added semicolons, removed extra commas and changed == to === to compare
with falsy values.