#244 Added writer mode notification on doc load

Now assessing loaded document for overlapping entities as well.
Moved anonymous function for JS best practices