support inserting css into an iframe

added document property in options object to pass an alternative document instance to insert the CSS into. Useful for iframe.contentDocument