video.php now more human readable(formatted)

I formatted the code so it's not so spagheti