JS solution now works on hackerrank.com, reverted Readme

Reverted readme back to the site's default

Javascript code now passes on the site.