Revert "Revert "THRIFT-2722: js: Fix javascript service inheritance namespacing""

This reverts commit 371358ce4e58ed45e86c87cc79d3b67ac95cfc98.