Michael, this is excellent and very instructive--thanks! I had to remove the dollar sign from $epc otherwise Firefox reported "missing variable name".
Thanks also for answering my question re: existence. Your explanation makes perfect sense. I assume by your exclusion that wrapping the whole thing with $ (document).ready(function() is unnecessary and is only used when you want to be absolutely sure the document is fully loaded. John