js formatting fix - space after right bracket