Modified by fp4 (fowlplay4) to support GS2 properly.

Forked off and based on the source of jsbeautifier.org.

IE6. You must be kidding me.