added javascript writeln