document.writeln(''); .... Bracket misused. Nothing between the brackets. ....