We should use the jquery properties parser instead of this