Fixed alignment and trailing spaces
Javascript Integration of new JSON

- JSON format has changed, included these changes.
- From cropsitedb: {downloads:[]} is now required
- Fixed tabs -> spaces
Cleaning up JS