Support extensions directive with pbjs