Fixed takeoff to work with latest Chrome and any level of folders

Thanks for the idea! I have now updated this to work with latest Chrome behavior.