removed server side code