Update index.js with API docs and code improvements
Update index.js with API docs and code improvements

pose/auth0-password-strength-fork,tehsis/lock,rpdiss/lock,cwilgenhoff/lock,sandrinodimattia/lock,cwilgenhoff/lock,adam2314/lock,tehsis/lock,adam2314/lock,cwilgenhoff/lock,rpdiss/lock,tehsis/lock,sandrinodimattia/lock,rpdiss/lock,adam2314/lock,pose/auth0-password-strength-fork