Moved percentage and # correct position, fixed JS, and removed duplicated script loads, and increment i by 1