added support to run as a Chrome packaged app