oops fix setting global on javascript files
stuff