Move modal script to bottom