changed demo to also support Chrome Packaged App