Remove extra console.logs and stop page from scrolling on no attributes