fixing up API key js load