Added webcaching for Firefox
made code cleaner
Merge pull request #80 from MaliusArth/master

Enable appCache for non-webkit browsers