changed js around to load JSON