fixed jshint errors
fixed testss