manual transaction stuff was causing DB/table locking, history not being saved until subsequent calls, etc.
Added demo JS client.