Basic js for manometer and AJAX