The balls increase your score, but make it harder to balance.
Use the mouse to balance for as long as possible, if the tray drops, just move the mouse round to flip it back over.