Updated detailsHTML option to double as callback function

This should allow the hovercard to be populated with various HTML dependent on selector attributes. Can be accessed from callback function via this or as arg[0].