[bowen] imporved javascript indentation