cleaned for code review, put floor and ceil for pearson correlation back in, look in previous version for JS and AJAX