A reference implementation for angular js