fix js error, remove console logs