cleanup JS version