Fix new team form action issue (JavaScript workaround)