added commands for repl
added various jshint goodness