trying to get looped json to work, will not recognize other js file