bugfix: custom panels use old api of elastic.js