Added some comments to js and controller for demo.