Critical bug

Wrote some stupid javascript that breaks permalink pages