Refactoring hackerweb (HTML5 app from Lim Chee Aun) with Angular.JS