wrap the hook parameter in an array to satisfy jQuery
redo the index storage to use jQuery#data