I don't consider myself a professional but I've been dealing with programming and Front-End for the past year. I've always had an algorithmic way of thinking which I guess helped me learn programming in general.
My advise is, try to think abstract. What is a program? Well, text? Input fields? More text? Code? What Code? How does that code work exactly?
I was getting my head on fire until I tried to simplify everything and not think it as a super-duper difficult thing to do and I can say it has worked a bit but not entirely. My only problem is that I lack time to practice!
Try learning Object Oriented Programming. Once you grasp the fundamentals, it will change your way of looking at programming in general!
I know I'm probably not much of a help, but hey! I know how you feel!