segmenter.js, generic_axis.js : corrections for jshint

$ jshint browser/js/*.js

browser/js/generic_axis.js: line 102, col 29, 'pos' is already defined.

browser/js/segmenter.js: line 165, col 34, Don't make functions within a loop.
browser/js/segmenter.js: line 264, col 17, 'i' is already defined.
browser/js/segmenter.js: line 282, col 21, 'input' is already defined.
browser/js/segmenter.js: line 297, col 21, 'label' is already defined.
5 jobs for feature-c/flexible_axis_display in 28 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Test Quality
passed #5460
allowed to fail
code_quality

00:00:21

 
  Test Unit
failed #5461
test_browser_unit

00:00:07

 
  Test Functional
skipped #5462
test_browser-functional
 
  Deploy
skipped #5463
deploy
manual #5464
allowed to fail manual
stop_deploy
 
Name Stage Failure
failed
test_browser_unit Test Unit There is an unknown failure, please try again
ok 239 - initRes
ok 240 - initAxis
# module: Console
# test: console

make[1]: *** [nightmare] Error 1
make[1]: Leaving directory `/home/gitlab_ci_multi_runner/builds/66984086/0/vidjil/vidjil/browser/test'
make: *** [unit_browser] Error 2
ERROR: Build failed: exit status 1