Show/hide Password button pure Javascript

Pure Javascript solution for show/hide password button near to password input: