We are using jquery to get the coordinates (offset) of the element that has to be screenshotted. This lib has to be injected. - Please use a namespaced version of jQuery to avoid conflicts.