Improve browser compatibility of melody input