move the javascript back into the views.
not idea, and contradicts rails asset pipeline, but
best solution at the moment.
bring prototype and associated js libs back in.
remove unused js files
use simpler code