Update index.js

Allow for choice of 12/24hr