Teen faces potential jail for violent school essay