Updated remark javascript to allow for LaTeX math