added client side JS to request data