reworking js