Whenever the mayor and council in their judgment see fit to create the office of city recorder and elect a person to perform the duties of that office, they shall also fix his compensation therefor.