add cursor position in js snippets
enhance README