A simple javascript library that invokes your methods when user arrives or left top/bottom of page.