Fixed a typo in js variable name.
Adding region to the new JS code string.