Updated js to use SITE_URL, added missing semicolons. Changed all Route::url to Route::get(...)->uri(. Code formatting.