Copies code from vanity.coffee.