Fonction was used before it was defined : i have a problem in mu javascript
so, look the picture for more information
[enter image description here][1]

  [1]: https://i.stack.imgur.com/Km7E6.png

and when o add this comment 

    /*jslint latedef:false*/

the error fixed but it's show a new error

[enter image description here][2]

  [2]: https://i.stack.imgur.com/C813g.png