moving the addEvent function onto FreeScroll object.