Fixed bug with reset and added initialization back

Both the input and standard html elements can now reset with out issue.
Both the input and standard html elements are also initialized so
starting values do not have to be hardcoded into the html