added example code from testjs on c9