switch jquery version and add offsetX handling for cross-browser (FF) compatibility