bug fix

Problems with DOM exception 11 caused voice recognition not to start.
Fixed it by using window.recognition and other minor changes