javascript : added method to stack multiple inputs for a single control table cell