reflect newly added device in device table using js