JS arrays problems 1-5