JAN code validator for Rails