added better javascript indentation