Manufactoria clone in Javascript!