optimize function back

bug:no judgement for whether back’s parentNode or back exists, might
cause js error “Cannot read property 'removeChild' of null”