Update appframework.js