Kiln client runnable in nodejs and browser environments