Javascript clone of Threes