fixed rotate text js issue