phonegap: fix process handler