implementation using merging from both sides. using native js for rendering