- comments placed
- JS modified to prototype revealing pattern
- we have public/private functions in JS

Signed-off-by: Siddhartha Gupta <makerzzz.zzzz@gmail.com>