upswing.js modified