That all fines and penalties imposed by this act, or which are or may be imposed by the ordinances of said town or the laws of the state, when tried and recovered before the mayor of said town, shall be paid to the town clerk for the use of said town.