avl js conversion error