fixed checkCombos javascript error in issue #168