fixed a mistakes made durint jshint correction