The amplitude mode at the superfluid-Mott insulator transition