fix in order of js requires