added test js methods and angular.js