allow hammerOptions to be specified as the result of a function

I thought it would be useful in some cases for `hammerOptions` to be the result of a function, as can `hammerEvents`