Fixed javascripts order