minor fixes to js
Tables now can be updated with new entries