It's all solved, thank you!
There were, for some reason two email fields: Main/system and the custom one. The custom one was on the registration form(!!). I have replaced it and now all works as it should.
I still don't understand why our custom template did not show js error, but hey. It's probably not a question for this particular topic...