Javascript: test cleanups
Javascript: Use heap ptr instead of object store