fix bugs, rename variables

the stage is now properly updated if the resources are loading properly.
Problem: cannot use "this" in handleComplete due to the scope problem of
the function calling