-refactoring JpasswordFieldJS