adding tool to library with ajax now working