implement _last_index_of to help poor old IE
Partial revert of removal of reset_statement_flags
Make parsing of bare if/for/while/do consitent and beautifiable.
Tweaks statement indent unwinding to handle nested bare if and else
Reduce the cases where output needs trimming by indenting tokens when printed.
More space output cleanup.
Clean up kruft
Rather than tracking newline state, we can now look at the output
Defaulting print_newline parameters to false
Merge pull request #183 from bitwiseman/master

Rewrite if/else/while/do handling in js formater
Merge upstream changes
0.3.5