Changed the order of the script tags