Create script.js

the script of the application