added new method for chrome 25 (thanks tuki), fixed #24