Fix ios static header and footer problem with snap.js