changed memjs stuff