restructured app to work on top of Backbonejs