Patch for <IE9 browsers

When addtohomescreen.js is used in bundle with other javascript files for web applications also supporting <IE9 browsers, it will throw an exception due to "addEventListener" not being supported, blocking following code execution. This patch will also prevent useless overhead since those browsers are not mobile capable.