adding js file and calling js function