added javadoc to apps.js