add safari css class, js code; render fix