fixes for Firefox
Merge pull request #256 from CosmoCMS/James

fixes for Firefox