fixes to javascript for editing and caching