phonegap: completion (moved to javascript psi)