Update median.js