unfortunately, the algorithm jsdeminifier uses is not 100% robust. it is very fast but not 100% accurate. previously I had looked at using uglifyjs to do the beautifying but it would run out of stack space. i'll have a look at it again because uglifyjs may have been improved.