Cleanup JS

Use `$.post' instead of `$.ajax'. This makes everything cleaner.
Deal with json more consistently