Fixed errbit integration

Fixed errbit integration on master branch. 

Look forward to learning angular-js by the way, code looks very clean!