Hex Number Generator

A Javascript program that takes in a integer, and returns the Nth
Centered Hexagonal Number.