Add javascript for editing tags. Fixes #155