added the js file to views