switched to angular.js