Fixed issue with use of setInterval in pe-ap.js.