fix 'webkitURL' type error in Firefox