Fixed js syntax errors.