The mayor and council shall have authority to elect a chief of police and such other policemen as they deem desirable and necessary, and to fix the compensation therefor. [Sidenote: Police.]