plastic criteria js