Dropdown worked after changing order of .js files