Added readme.md, documented some JS.