reordered browser capability checks to avoid the page refresh happening before persisting the results. closes #20