updated sonata-base.js