add UMD wrapping to provide esprima dependency