updated with bug fix to enable functions to be passed to colorbox href