Refined the JS rendering statement