Updated html5 funcs to check for canvas support.