changed to pass jshint and jslint validation