Add navbar shadow behaviour in js