Tutorial fixes

Seems to fix most of the cross-browser problems reported.