updated closure script from demo
https://github.com/googlei18n/libphonenumber/blob/master/javascript/i18n/phonenumbers/demo.js