How to add scroll to js code?