fixed issue where dial codes were ignored if they had a space in. also removed the duplicate IIFE
fixed issue: changing flag doesnt update number when dial code contains space/dot etc