fully commented the javascript
added design file