extract escapeHTML function in scrollit example. Fixes #35