refractored viewmodel js, built Bookshelf js and html references, fixed this error