cleanup JS compat