update script.js

prevent header slide on mobile