Reordered js scripts