add js handle set locale