add the crude endpoints example as js