integrate js file of each view to one file