Clean up the latest changes to lib/scripts.php

:blue_heart: @swalkinshaw