js for scrollbar and header navbar