fix for https://github.com/wordnik/swagger-js/issues/81
ie8 fixes
merged upstream