Added pushStart and pushEnd to public API

Support PhantomJS