hs: clean up javascript side of C++ interface
hs: remove extra lines