Started the javascript clone stuff, but is not done yet. Will work on it
another time.