Renamed add function to addTransaction, as add seems to be a special word.
Added AJAX request and corresponding DOM manipulation.