split richie.js into a few different files. Still all in the same js module, but moving toward a less monolithic implementation