Fixed an error in the console, undefined function attr().