Fix code style: move spaces to tabs in all JS function