Quick code style reformat and notes in inc/scripts.php