ensured jQuery was loaded first
 * wrapped link in anonymous function