Fix fittext with inline javascript