Fixes Bugzilla #1168424 missing square bracket

Also removed the console.logs