working on mock objects to figure out flow for javascript