Cleaning up the javascript, adding better read me