Fixed some validation errors

I fixed some validation errors that were really stupid, along with fixing the analytics script.