current and new weight linked to onload.js