Fix javascript errors from removed scrolling code