linted
null checks
Merge pull request #14 from Runnable/jshint

linted