adding phone gap plugin... almost working