Added js to generate wpa from HG8245 and HG8247

Kaczinski rmz