Fix non-compatible browsers throwing errors

Add compatibility check for HTML5 canvas element
Bump version to 0.3.1