Remove redundant script
Fix dependency on $ jQuery variable
Fix variable scope
Remove debug alerts
Make links work in light boxes too
Use namespaced jQuery events to prevent script from conflicting with other scripts' click events