Add feature test for applicationCache: fixed for IE9

Lack of applicationCache suport in IE9 was causing a reference to window.applicationCache.addEventListener to break the page in that browser. Have wrapped the code block in question inside an appropriate feature test, to allow supported functionality to execute, and not get blocked by js errors.