[bug 838000] log cleanup and jslint