added documentation to app_prototype.js