Restore behavior after switch to requirejs