Alas, no - there's a lot of code before this that loads the base map and all the various feature layers. If you're stumped, then probably what's happening is my dev lead has got something going on that we're not aware of. I think I'll punt this one over to him and see what he comes up with.
Thanks again, man - and I'll try to post the working version if we come up with one.