JS: JS for PWD example work