Added the stimuli js file

Broke the $global_caches out into their own file.
Broke to_html into a helper, included

This is great: it is a view helper for the model, which I've then
included in the model. This is best. Better, even.