-Clicking on a resource now alerts something.  The key was calling the function and then selecting the entire document and using  a selector within .on to select the resource.