Declare AppManager.js as pragma library
It doesn't store any state but contains only functions.
Differential Revision: https://phabricator.kde.org/D6676