Initial attempt at cleanup.
Get cart JS working with required.