angular 1.3.x breaking change fix

1) this changes are compatible with old angular 1.2.x (and lower) and new angular 1.3.x

2) i didn't update angular version in karma.conf.js to 1.3 because of this is not stable version (just release candidate)