Add text parameter and alignment with call js functions