JavaScript exploits can be multi-purpose and multi-platform. And it's beyond trivial. Same BS that folks on macOS think, seems to be prevalent in Linux too. Each and every OS that connects to the Internet can be exploited. It's a matter of when it will happen, not if it will happen.