Added page script to show how to use factory.