whitespace fixes, unified JS indentation