No the code is fine. What's happening is one of your plugins that loads ahead of RokBox is crashing which then in turn pulls down RokBox and you see that error "Uncaught ReferenceError: RokBoxSettings is not defined".
The typical approach to this is disabling your 3rd party plugins one-by-one till you find the one that's causes the crash.