first actual commit; basically just a port of the jsbin code.