Lightbulb phonegap architecture

i am new to phonegap, i am really liking it. Its awsome software
can anybody tell me the working principle of phonegap software