In JS you have to use "()" with a method and end each line with a ';'
eg:
document.writeln("some crap");