CH-908 by Zarabadoo: Make the new data load in via ajax.
CH-908 by Zarabadoo: Change the metric value when the metric select is changes and make it persisist when a new goal is loaded.
CH-908 by Zarabadoo: Simplify script based on code review.