quick offset.js fix