extract jqzoom and initialisation code to allow for easier customisation