js dependencies resolve