js rendering looked weird