Update script.js

Added controls for checking input fields.