Add a memory clear function to jsrt, along side memory hog.