reworking minus JS