Followup 1fc13cc: fix JS errors caused by incorrect context binding

Bug: 71997
Change-Id: Idb84a1c9dad91ef69554acb73398c0a0e30fece2