Fixed issue #18 javascript wasn't fetching the password correctly