migrating code from jsbin
starting to restructure into backbone