Fix rendering bugs in IE and Firefox

Fixes #4 

Verified in:
+ Windows 7: IE 9+, Firefox
+ Windows 8: IE 10, Firefox
+ Mac: Firefox, Chrome