Change port, prepare AJAX in static