updated appframework.js