succeed to generate javascript. fail to indent