javascript version of the bejeweled game