Reorder script, kill JS error 1