My javascript class works when inserted in my main script file. However, since I moved the code to an included file, WebLoad gives me an error message every time I try to use a class method. e.g.

TheStore.SetName is not a function

Has anyone got any suggestions as to what I might be doing wrong?