I don't think you're going wrong either way. It is worth checking out the job market around you and using that to ultimately decide.
Around here, for whatever reason, Rails jobs seem to pay much higher than JS jobs. But, I know that's not true everywhere.