Added close support to webOS web apps, fixes #38