working for web, still need to add scaffolding for phonegap