Updated JS to make sticky nav less jumpy