I think that it depends on your JavaScript experience. If you're highly experienced it will be easier for you to start learning something new while you're keep doing JavaScript jobs. If not, try to make a priority and what is going to be your first choice in your career. Learning data science on some of the online platforms is a good choice. Not the only one, but good choice.