Be aware that JavaScript (which is often used in websites, and you mentioned a course about it) is not the same as Java (which is what Starfarer is written in, and what any mod scripts for Starfarer use).
They are reasonably similar, but if you're not interested in websites too much, I would suggest you learn Java first. I personally believe it's better that way around, though your results may vary.
Some animations use scripting (by which I mean, you tell part of something to move up and left, and something else to move right, and that makes an animation) wheras some just use 'baked' animations (by that I mean someone has just rendered every frame in a graphics program, no actual code involved, and one line that tells the whole thing when to play) but so far Starfarer has no ship animation of either type that I'm aware of.