Working on dynamic angular javascript proxy