Convert to angularjs
Switched to angularjs library