fixed a bug in server.js about getTime; added reset_count