Fixed fragment in auth redirect
Minor fixes in JS client and AuthHandler