localize javascript library