folio.js rewritten with new JSON calls w/ Laravel's methods, added comments to controllers