Fixed the attribute setting to conform to jQuery 1.9 specifications.