Can you write it as js code?