InvalidStateError on Chrome 39 #778