Dynamically cloning object inputs with JavaScript