Fix some JS stuff

Remove jQuery as some clients freak out with it, implement replacement
functions $.ajax() and $.serializeJSON()

Tweak date to use toString() because some clients don’t handle it well
without it.