Moved ks_initSessionVars to global namespace, initialised during head.ready.