Added AJAX posting. Stil buggy.