Added Init Function for angular Controller File

The Init function is what will be invoked on page load to get the data
from RESTful endpoint and populate chart on the home page.