updated instruments js codes