updated readme and removed unnecessary code from base.js