use traditional jQuery param serialization to handle arrays in a compatible way with phoenix