demo functional three JS