fixes #2 : Firefox compatibility issue