Re-order JS application