Added Firefox compatibility.