make canvas work in firefox