Fleshed out recognition.onresult() method to retrieve the command text. Added maxAlternatives setting.