ECMAScript source pattern converter