Update appframework.ui.js

in case of robustness, plz add the parameter af for the  Immediately-Invoked Function Expression(IIFE).