Updated: prevent memory leaks when deleting INPUT elements; new Date() -> Date.now(); use the existing scope when creating a new INPUT element