Changed event style from pce.onLoaded = function(){...}; to pce.on('loaded', function(){...});.