added some comments
added the js file