Post update: Javascript, form reset and hidden fields