Fixed an error in the console, undefined function attr().
Missed wrapping element.
Merge pull request #1 from MorganDawe/7.x

7.x console error