Entry page word counter via JS