Cleanup mock index

Make it more consistent with how the other code is written, and how express/ember code is written