First attempt with phone gap