```validate_doc_update``` moved from views to root

Signed-off-by: Alexander Shorin <kxepal@apache.org>
Fix formatting
Remove editor reference to go to line 2 to stop browsers from crashing on people who have minified index functions.
Accidentally committed debugging code. Return 5 ... (thanks kxepal!)