small fix for compatibility (now works in IE 9+, Chrome, FF, Safari, Opera)