Javascript Match game resource