added script.js
events added