Update Js

add dynamic offset to affix