I stupidly thought I could get away with ClientScript::POS_HEAD, e.g., but obviously this is never eval'd in php context.  So implemented ghetto enum parsing to look for POS_HEAD & the other values for position.