So my original answer was incorrect. "Hope this helps!" is a declarative, not an imperative. Instead of deleting my answer, I think it might be helpful to explain why I should have known it wasn't an imperative, and pull out the bits from the original that were correct.
Imperative clauses are usually in the second person, like:
"Hope for the best!" (You should hope for the best.)
A declarative clause is just a statement, like:
"I am editing my answer." or,
"Hope this helps!"
The second person and first person form of hope are the same, so I got a little confused because I didn't think about it carefully. I should have been able to tell that the clause wasn't an imperative because an imperative is usually a command directed at another person, and "Hope this helps!" is stating something in the first person.
I would expand "Hope this helps!" this way:
I hope this (answer) helps you.
You would say "This answer helps me." and not "This answer help me." because the subject of "help" is third person singular. So, "Hope this helps (you)!" is OK, but "Hope this help (you)!" has a verb agreement problem.
In your suggested sentence, which is grammatical, you changed the wish from the present (helps) to the future (will help). This is OK, but it's not exactly what the original author expressed.
Well, after doing a lot of digging around, it looks like there really isn't a specific rule for this because there is little to no difference between the two. I think that the comments on your question confirm this...plenty of native speakers can't seem to find a distinction between the two.
So it looks like the "to" is completely optional. What is strange about this is that there doesn't seem to be much of a connotative difference between the two versions at all. Usually when something is optional, the different versions have some sort of connotative difference - possibly more formal or more colloquial. It doesn't seem like that is the case here to any extreme degree.
Both sentences below have the same meaning:
My goal here is to help you to learn to think in JavaScript.
and
My goal here is to help you learn to think in JavaScript.
I will say that I personally prefer the second option without the extra "to." I think this may be because the to-infinitive sounds slightly more formal, and in this case, since the writing style and topic seem on the informal side to me, leaving the "to" out (using the "bare infinitive") makes more sense to me.
BBC World Service's page on learning English confirms this:
The difference is one of form only. There is no difference in meaning.
to-infinitive or bare infinitive
Help is a verb that can be used with or without to and with or without an object before the infinitive. When we use it without an infinitive it sometimes sounds more informal. Compare the following:
Could you help me to look for my car keys? I can't find them anywhere.
Could you help me look for my car keys? I can't find them anywhere.
Would you like to help to cook dinner tonight? It's late and I'm feeling tired.
Would you like to help cook dinner tonight? It's late and I'm feeling tired.
Here are a number of links that you can check out for more info on this (that appear to confirm what I've written above).
Best Answer
After the verb Help, you can have an infinitive form of verb. The infinitive form can be either a to-infinitive or a bare infinitive. That is actually optional. Mostly in conversation or informal English, the to is often left out.
Examples -
He helps him (to) learn Russian.
Alex helped a blind man (to) cross the road.
N.B So a bare infinitive as well as an infinitive with to is both acceptable after help. But it's observed that in BrE the to-infinitive form dominates, though bare infinitive also occurs in BrE. On the other hand in AmE a bare infinitive is preferable. When there is a repetition of to (a pattern of to + help + to + verb) as in this sentence - she allowed Pearl to help her to stack up her hair - a bare infinitive is generally occurs. Another place where bare infinitive is preferred is when there is an intervening noun phrase as in help people break the cycle of poverty. Bryan A. Garner writes the better usage is to use bare infinitive after help, while Pam Peter says the preference of to-infinitive in BrE is because of their conservatism but this practice is changing.
Some pattern with help from Google’s Ngram viewer
For the help + (to) learn
For the help + (to) do
For the help + (to) dig