Switch to jQuery self-executing function for namespacing and protection.

http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/