in reply to Not able Login into webpage which use javascript while load

Did you notice you had 2 "$" signs at:
"password" => $$password

                Once it hits the fan, the only rational choice is to sweep it up, package it, and sell it as fertilizer.