fixed #13, added catch errors for dom request