Fixed references to a non-existent array in the JavaScript file to reference the appropriate existing array.