Fix cross-browser discrepancies (works on Chrome, Safari, FF, IE, both retina and not)

Fixes #4