remove console logs and fix bug in background js that gave undefined time