Fixing parser for IE 9/10