updated loading, added scroll position, html5mode