Fix indentation
Add todos relating to Ajax and JSON encoding