Update script.js

Added input json data for refresh. Data to html changes to be added soon