Fixing typos and jshint validation