update the loads.js implementation to follow the latest changes in loads.