Get Mastry in Angular JS