switched to using jQuery get instead of JS array to select