set up unit for angularjs