max and js bugs 138 143