Be it further enacted, that the mayor and council of said city shall have the right to elect such other municipal officers beside those herein specified as to them seem necessary and proper therefor when necessary, by ordinance, and in the same manner prescribing their duties and compensation and fixing their compensation.