Fixed code. No console errors.