js function render() extended
smooth scrolling