Fixed edit password javascript