Wrap in jQuery document.ready

Otherwise when including ad-hoc it doesn't calculate height correctly and all scroll reach points are triggered.