js metodo for