safer generating of dep list using asJavascript