Complete external hash login script, more JS cleanup to remove old code.