Created a separate js file for the initialization of the views