Update nerdamer.core.js

Fixed broken latex generator. The only minor annoyance which remains is the fact that there will sometimes be redundant parentheses in denominator. This is more related to aesthetics and will remain for the time being.