added js arrays and initial prompt