fixed several browser bugs in Chrome 33, Safari 5 & Opera 12