Create script.js

contsins js functions