bookmarker.js — fixed newline Handling for slice