Set correct content type header
Loop over all events if recurring

Also fix property naming so that JSHint does not get angry.