Stops double loading scripts