Sharper bounds for online learning of smooth functions of a single variable