Protected the $ alias for compatibility with other JS libraries and Wordpress.