Repair. The mayor and council shall have full power and authority to enact all laws and ordinances to require any railroad company having or which may hereafter have tracks running in, along, across or through the streets, alleys or public ways of said city, which have been improved, to macadamize or otherwise pave and improve as the mayor an,J council may direct, the width of their tracks, and two (2) feet on each side thereof, and to require said companies to repair or repave their aforesaid portions as the mayor and council may direct; and the mayor and council shall have the power and authority to enforce the provisions of th.is Section by appropriate ordinances.