JavaScript Mind Map visualisation and management