fix char count javascript not appearing on initial page load