add js for scrolling to error/notice
fixes #477