"""<script type="text/javascript">
                       alert('You can only vote once');
            </script>{0}"""
AJAX for updating Flask template after data goes from link action or form to mongodb collection