multiline matches, for JS only, work in progress