code changed to use angularjs

You have almost 200 consecutive lines of commented code here.