Javascript Extract Value From Array Import