Fixed Flip in latest Chrome, FF and IE

Fixed the Flip gliches in Chrome, but also improved it for the latest FF
and IE

Issue #80 is solved
Merge pull request #95 from gpetrov/master

Fixed Flip in latest Chrome, FF and IE