add footer offset to js