Adding verification for multiply in js