Implemented custom containers

Scrolling inside a div instead of the document is now fully possible.
Even when the container has an offset.
Also updated example template & debug extension accordingly.