Formatted the javascript files.

Fixed a bug in the data collection screen where the form json was getting printed before form generation