Update script.js

placed soon-to-be-used function