adjust maxnum js