Added external js file for controller