adjust demo for angular v1.2