Update max.js