Cleaned up pwcheck.js