compatibility improvements with latest Chrome release

I think this'll work better.