[JS] control collision