fix js code for passing jshint (v 1.1.1)

Bug: 69869
Change-Id: I1b058ea1dc6c5c3e10ff2de39f03ddd72207e57e