Update script.js

Always send complete data as the object will be held in memory