By default, Drupal, will attaches the JS assets at page bottom to avoid some frequents problems like: DOM content loading block, access to unready DOM element from jquery code, ecc... If for certain reason it's needed to attach JS assets into the section it's possible the use of header option, in this way:
version: 1.x
header: true
js:
js/cuddly-slider.js: {}
So, now, the js/curry-slider.js will be attached at page top.