updated script.js

Input section has been started