Ajax data retrieving ended

Switch retrieve dataType from js to json for more control and
possibility to handle errors better.
Unused files causing trouble