added offset.js