Cannot read property 'msie' of undefined