javascript encrypt password before sending