Cargo container validator ISO 6346 implemented in Javascript