Every grant to any such company of a right to use any street, alley, road, highway or public ground shall be subject to the right of the proper authorities to control the use, improvement and repair of such street, alley, road, highway or public ground, to the same extent as if no such grant had been made, and to make all necessary police regulations concerning the management and operation of such railroad, whether such right is reserved in the grant or not.
610 ILCS 115/4