Fix for formatting in Firefox, check for canvas support