Update fsm-sticky-header.js

Fixed a few bugs.