update to support angular 1.3