Fix closure lint and jshint errors

- 80 characters per line, space before ',', use single quote instead
  double quote, space after if, and etc
- jshint complains about == against nulli. I think the check is correct
  (null or undefined), so i added two ignore blocks