An exercise to make a single page javascript application with angular js