Python String Not In Array Javascript Append To Object