Changed ajax syntax
Fixed JSON string
Got X icon in the right place