html tags have just ID, js file has new vars which may be superfluous: var selectedState and a commented out var=i. JSON is still array.