fix JS warning

Change-Id: Ic1fbca3d359f7364d2c37e36e3caabf1284c15ae
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>