Refactoring JSLogUtils.