Fixes month on sample page

The formatDate() function was returning one month two early, since the getMonth() function on the prototype gives the "friendly" month date minus 1.