Working on updating to the new version of preload.js