merged chain.js into web.js and modified some type function tests as well as started plans on web.fork