updated index to use loader.js
updatedviewmodel to use chart_object module