Component Based Application for Phonegap