Added support for JavaScript engines that don't support E4X