few js console warnings are fixed