prismatic/dommy dependency
util function to wrap jquery index