Bugfix for success pages and scrolling in JS