HTML5 and JQuery: A simple matching game