Move scroll functionality into an object and replace string double quotes with single quotes.