Fix JS error

Change-Id: I5fa0b6134568d027ec1fe844228de68a1dccfaa1