Error handling for ie10 and chrome, need to investigate ie11