Add my solution to Javascript
merge