* created the readme file
* separated js file
* added comments on important parts