POST through ajax almost complete