You can define your own TEX macros in the TeX section of your MathJax configuration:
TeX
MathJax.Hub.Config({ TeX: { Macros: { RR: "{\\bf R}", // defines \RR bold: ["{\\bf #1}",1] // defined \bold{#1} } } });
Other options for the TeX input jax