Replaced DOMException.QUOTA_EXCEEDED_ERR with its value

Replaced DOMException.QUOTA_EXCEEDED_ERR with its value in order to
support IE8, since DOMException is not defined in IE8 and below.