Add prototypes for Angular JS