migrating JSs to new catarse JS framework