Fixes bad offset for chrome, adding jQuery dependency