Fixed js rendering error