Default config values & clean-up

Also fixed an issue where <script>/<link> as the last item in the file
didn't get matched properly.