generating the data once and storing in localStorage; created the math and data namespaces