removing backbone, adding loadtemplate library, added main logic functionality