Create js file and add script tag in index.html