JS: Query string to object