Added right to offset.js for RTL pages