Correcting javascript formatting with indents