Factory function to create a pricker
ID of HTML element to which the pricker will be bound
pricker options
document to use to create pricker (for testing)
Factory function to create a pricker