updating readme
Formatting changes with jshint
removing the valid and invalid calls