update function names
fix JSLint warnings
fixed JSLint warnings and init()
fix password