New version of ypi.js core script