Teen jailed for assaulting man with baseball bat and smashing unit