initial commit - adding all C++ files and extant JS