ghcjs-canvas shims

Firefox does not implement setLineDash yet. Instead, for some weird
reason, it has mozDash and mozDashOffset properties.
<https://bugzilla.mozilla.org/show_bug.cgi?id=662038>