Update latex.js

Temporary fix. I proposed the same change to the official repo.
Merge pull request #84 from dfelder/patch-2

Update latex.js