Refactored all the JS that is in the lmu_view.