change font js

JavaScript
selector.style.fontFamily = "Times New Roman";
Source

Also in JavaScript: