Revert "Removing javascript cookies behavior - seems to break the server"

This reverts commit 42a7b08c9d66fba397fbc86ab2e82455e392adc5.
Fixed check on reset submission
Minor changes for server te(lexos) testing