more cdx references
check for jquery before executing it, this is important for ipython notebook embedding