Memory Game written in Javascript