@app.route('/static/autocomplete.js')
def get_js():
    return open('autocomplete.js').read().replace('8080', str(PORT))
@app.route('/static/autocomplete.js')
def get_js():
    return open('autocomplete.js').read().replace('8080', str(PORT))