Use `attr()` instead of `css()` to set CSS
Use jQuery 1.x