Support new browsers

Based on #50, adds a few needs fixes for that PR.