Fixed the mysterious console.log, and removed a wrong closing bracket