JavaScript parsing bug fix.