upgrade to angular 0.9.10 and update the code with angular API changes