cleaned up cart js