fix a js error.

Signed-off-by: Henry Chen <hchen@vmware.com>