Fix menu selection not working after dart2js