Create Two Sub Array In Javascript