React port of jschr's better bootstrap modals