updated to rely on angular 1.2.3