#48 JS card validation