Convert node ajax to klein