Update rootScope.js

I proposed this change to avoid this error : http://jsfiddle.net/kEyqz/1/ (to look debug console)