Remove unneeded function; add app prefix to window