fix prefix check in firefox, closes #1