Doh! Order of loading in JS is important.