Updated to Angular1.3