 scrollToRef = (event) ->
   event.preventDefault()
   target = $(event.target).attr('href')
-  $('body').animate( 
-    scrollTop: ($(target).offset().top - 10), 'fast' 
-  )
+  window.scrollTo({
+    top: $(target).offset().top - 90,
+    behavior: 'smooth'
+  })
 
 waypointer = ->
   for l in $('#navmenu-fixed a')

  window.setTimeout (->
    operationsAfterSwaggerLoads()
  ), 2000
  

    localStorage.setItem('access_token', $('#input_apiKey').val())
    return

  $('.set-token').click (e) ->
    e.preventDefault()
    $('#header').addClass('headroom--pinned').removeClass('headroom--unpinned')
