fix a bug about that jquery's function named offset give a different result in chrome and firefox