Fix most lint errors in appframework.js