Change esc_attr to esc_js.
Removed filter.
Removed old escaping that breaks the system.
Removed filter comment.