changes to BeagaJS