Created separate js file