Remove unneeded $ wrapper
Set attribute on the element directly