Compatibility tweaks

Now works in Chrome, FF, IE9+