Add a console log to JS editor