Being a HTML guy I did it like this
Javier Eduardo Treviño

Hi Javier, Glad you figured it out :)

Another way to do it is textAlign: "center" . For more info on styling text within a layer check out my other Cheat Sheet on Layer styling, and go to section 7 which is on typography: