Check for canvas and localstorage