Written in JavaScript.