Do not rely on rewriting. Refactor

- Remove rewriting since it requires a flush which sometimes fails
- Use a CDN for jQuery serialization plugin
- Refactor