Fixed top scrolling bug in container and added waypoint object to handler callback

Hello,

A few bug fixes for you. I fixed the original JS instead of CoffeeScript though.

CoffeeScript mods were tested subsequent to the commit, everything works.