error check

ran through jshint