[DEV-1769] Replace getCookie function with jQuery cookie plugin.