Angular JS prototype