Fix JS errors

Not sure how I missed that!

Change-Id: Ia9ba4071d383ca94158d6205d01a22eb63b17467