Communication between Arduino and javascript in a local server using MAMP, processing, JSON and AJAX.