Added js code to fix offset: