draft 2

still wrestling with the javascript