changed architecture.. changed models and config to js rather than json file