Layed out architecture for the app in rickshaw.js