fix #17, add console and ActiveXObject to globals