reworked js path