reworked js