Remove unused modes, add framework hint js