Zend_View_Helper_HeadScript revisited, to allow passing of variables to JavaScript.