Update index.js

timestamp as integer