Cleared up all javascript console errors