updates to allow it to work on Firefox