add fallback for jquery
add updateOffset function, to refresh the value if the dom changes

• change spacing