Having trouble with this:
var now = new Date();
var timestamp = now.format("dd/mm/yyyy HH:MM:ss") + " (" + GetLoggedUserName() + ")";
I get: Object doesn't support property or method 'format'
I was sure this worked before though on other projects..