changed to make admin url a javascript variable