clean code to avoid lines with more than 80 characters
added missing semicolons
use strict comparisons