FileWeights.js changed to declare object in a way similar to how jquery ...

...do