previous method wasn't even firing, lowering phonegap version in an attempt of making it work