ACAO
Move logic to JavaScript