Update appframework.ui.js

in case of robustness, plz add the parameter af for the  Immediately-Invoked Function Expression(IIFE).
Merge pull request #481 from LeoYuan/master