Used for writing small javascript tests to the console.