Probably should switch to the homescreen frame before we run this otherwise you get a javascript exception as GridManager ,afaik, is not global .