changed the order of the script tags