fix js console issues