Updated to Angular 1.3

Also improved demo page code