What are you/we supposed to do with that expression?
Put parentheses around numerators and denominators, especially if they have multiple terms. What you posted meant: \n" );
document.write( " \n" );
document.write( "which I suspect is not the expression you intended.
The expression has nothing to do with logarithms. Please post questions under a relevant category.