Made angularJS version fully functional.