angular js prototype for homefry