read me for legacy, updated doc, example s_code.js