Change ajax addressses to intelligent addressing i.e. drop localhost:3000/