new option to support double return

New commit. Test in these days.
Update code, passed jslint update doc refer.