fixed syntax error by jshint and encoding of line ending