modified animate function for scrolling. added 'body'. 'html' only wasn't working on Chrome