Add some documentation for base.js, update index.html to show something. @arthurevans @sorvell