initial (unfinished) work on wwt javascript code